offload-disable-static-assert
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 16 Dec 2025 11:47:30 +0000 (12:47 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 16 Dec 2025 11:47:30 +0000 (12:47 +0100)
===================================================================

Gbp-Pq: Name offload-disable-static-assert.diff

offload/include/Shared/APITypes.h

index 978b53d5d69b9efb67d06120e82464d6843d8ae0..2007f1eeb49a49fc696cc46203ad4b1444c35da6 100644 (file)
@@ -107,10 +107,10 @@ struct KernelArgsTy {
 };
 static_assert(sizeof(KernelArgsTy().Flags) == sizeof(uint64_t),
               "Invalid struct size");
-static_assert(sizeof(KernelArgsTy) ==
+/*static_assert(sizeof(KernelArgsTy) ==
                   (8 * sizeof(int32_t) + 3 * sizeof(int64_t) +
                    4 * sizeof(void **) + 2 * sizeof(int64_t *)),
-              "Invalid struct size");
+                                  "Invalid struct size");*/
 
 /// Flat array of kernel launch parameters and their total size.
 struct KernelLaunchParamsTy {